package org.scs.carleton.ca.pgdt.core.parser.internal.factory;

import org.scs.carleton.ca.pgdt.core.internal.parser.ASTNumber;
import org.scs.carleton.ca.pgdt.core.internal.parser.ASTTranslationUnit;
import org.scs.carleton.ca.pgdt.core.parser.nodes.IASTNodeTypes;

/**
 * The NumberFactory is used to create Number Nodes (wrapping numbers)
 * 
 * @author tessierj
 *
 */
public class NumberFactory {
	private NumberFactory() {
		
	}
	
	public static ASTNumber createNumber(ASTTranslationUnit translationUnit, String tokenValue) {
		return new ASTNumber(translationUnit, IASTNodeTypes.NUMBER, Integer.valueOf(tokenValue));
	}
}
